/*
 * Copyright 2021 Muii
 *
 * Licensed under the Apache License, Version 2.0 (the "License;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http:public static final String www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.gitee.muii.echarts.constant.string;

import com.gitee.muii.echarts.constant.Constants;

public abstract class StringConstants extends Constants<String> {

    public static final String LEFT = "left";
    public static final String CENTER = "center";
    public static final String RIGHT = "right";

    public static final String TOP = "top";
    public static final String MIDDLE = "middle";
    public static final String BOTTOM = "bottom";

    public static final String CARTESIAN_2D = "cartesian2d";
    public static final String POLAR = "polar";

    public static final String CIRCLE = "circle";
    public static final String RECT = "rect";
    public static final String ROUND_RECT = "roundRect";
    public static final String TRIANGLE = "triangle";
    public static final String DIAMOND = "diamond";
    public static final String PIN = "pin";
    public static final String ARROW = "arrow";
    public static final String NONE = "none";

    public static final String DEFAULT = "default";
    public static final String AUTO = "auto";
    public static final String CROSSHAIR = "crosshair";
    public static final String POINTER = "pointer";
    public static final String MOVE = "move";
    public static final String E_RESIZE = "e-resize";
    public static final String NE_RESIZE = "ne-resize";
    public static final String NW_RESIZE = "nw-resize";
    public static final String N_RESIZE = "n-resize";
    public static final String SE_RESIZE = "se-resize";
    public static final String SW_RESIZE = "sw-resize";
    public static final String S_RESIZE = "s-resize";
    public static final String W_RESIZE = "w-resize";
    public static final String TEXT = "text";
    public static final String WAIT = "wait";
    public static final String HELP = "help";

    public static final String START = "start";
    public static final String END = "end";

    public static final String INSIDE = "inside";
    public static final String INSIDE_LEFT = "insideLeft";
    public static final String INSIDE_RIGHT = "insideRight";
    public static final String INSIDE_TOP = "insideTop";
    public static final String INSIDE_BOTTOM = "insideBottom";
    public static final String INSIDE_TOP_LEFT = "insideTopLeft";
    public static final String INSIDE_BOTTOM_LEFT = "insideBottomLeft";
    public static final String INSIDE_TOP_RIGHT = "insideTopRight";
    public static final String INSIDE_BOTTOM_RIGHT = "insideBottomRight";

    public static final String NORMAL = "normal";
    public static final String ITALIC = "italic";
    public static final String OBLIQUE = "oblique";

    public static final String REPEAT = "repeat";
    public static final String REPEAT_X = "repeat-x";
    public static final String REPEAT_Y = "repeat-y";
    public static final String NO_REPEAT = "no-repeat";

    public static final String SOLID = "solid";
    public static final String DASHED = "dashed";
    public static final String DOTTED = "dotted";

    public static final String BOLD = "bold";
    public static final String BOLDER = "bolder";
    public static final String LIGHTER = "lighter";

    protected void add(String prop) {
        this.labels.add(prop);
    }

    @Override
    public String propertyOrDefault(String property, String defaultProperty) {
        String result = super.propertyOrDefault(property, defaultProperty);
        if (result == null) {
            return "";
        }
        return result;
    }

}
